import axios from "@/http/request.js";

//财务接口
const financeApi = {
    //老板充值
    bossTopUp(data) {
        return axios({
            method: "post",
            url: "/financeB/boss/topup",
            data,
        });
    },
    //老板流水查询
    getBossWaterList(data) {
        return axios({
            method: "post",
            url: "/financeBP/boss/water",
            data,
        });
    },
    //陪玩流水查询
    getPlaymateWaterList(data) {
        return axios({
            method: "post",
            url: "/financeBP/playmate/water",
            data,
        });
    },
    //陪玩提现审核：查看待审核提现申请
    getPendingCashList(data) {
        return axios({
            method: "post",
            url: "/financeP/playmateCash/pending",
            data,
        });
    },
    //陪玩提现审核：审核提现申请
    auditPlaymateCash(data) {
        return axios({
            method: "post",
            url: "/financeP/playmateCash/audit",
            data,
        });
    },
    //资金流水报表
    getFinanceReport(data) {
        return axios({
            method: "post",
            url: "/financeG/report",
            data,
        });
    },
    //导出资金流水报表为Excel
    exportFinanceReport(data) {
        return axios({
            method: "post",
            url: "/financeG/export",
            data,
            responseType: 'blob' // 关键：设置响应类型为blob
        });
    },

};
export default financeApi;
